<?php 
/* SVN FILE: $Id$ */
/* Region Test cases generated on: 2009-05-30 23:05:31 : 1243740991*/
App::import('Model', 'Region');

class RegionTestCase extends CakeTestCase {
	var $Region = null;
	var $fixtures = array('app.region', 'app.region', 'app.agency', 'app.order_info', 'app.region', 'app.user_address');

	function startTest() {
		$this->Region =& ClassRegistry::init('Region');
	}

	function testRegionInstance() {
		$this->assertTrue(is_a($this->Region, 'Region'));
	}

	function testRegionFind() {
		$this->Region->recursive = -1;
		$results = $this->Region->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Region' => array(
			'id'  => 1,
			'region_name'  => 'Lorem ipsum dolor sit amet',
			'region_type'  => 1,
			'region_id'  => 1,
			'agency_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>